#ifndef MUSICLIST_H
#define MUSICLIST_H

#include<Qvector>
#include"music.h"
#include<QSet>
typedef typename QVector<Music>::iterator iterator;
class MusicList
{
public:
    MusicList();

public:
    void addMusicByUrl(const QList<QUrl>&url);
    iterator begin();
    iterator end();
    iterator findMusicById(const QString& musicId);
    void writeToDB();
    void readFromDB();


private:
    QVector<Music> _musicList;

    QSet<QString> _musicPaths;
};

#endif // MUSICLIST_H
